<script type="text/javascript">
jQuery(document).ready(function() 
{ 
	jQuery("#page_first").attr('href', '<?php echo $commander->getFormAction('ajax'); ?>&page=1&q=<?php echo $_REQUEST['q']; ?>');
	jQuery("#page_prev").attr('href', '<?php echo $commander->getFormAction('ajax'); ?>&page=<?php echo $prev; ?>&q=<?php echo $_REQUEST['q']; ?>');
	
	jQuery("#page").val('<?php echo $adc->Pager->getPageCurrent(); ?>');
	jQuery("#pages-count").val('<?php echo $adc->Pager->getPagesCount(); ?>');
	
	jQuery("#page_next").attr('href', '<?php echo $commander->getFormAction('ajax'); ?>&page=<?php echo $next; ?>&q=<?php echo $_REQUEST['q']; ?>');
	jQuery("#page_last").attr('href', '<?php echo $commander->getFormAction('ajax'); ?>&page=<?php echo $adc->Pager->getPagesCount(); ?>&q=<?php echo $_REQUEST['q']; ?>');
	
	jQuery('table.item_list tbody').empty();
	jQuery('table.item_list tbody').html('<?php echo $commander->getComponentListLoading(); ?>'); 
	
	loadItems(<?php echo $adc->Pager->getPageCurrent(); ?>); 
});
</script>